package org.apache.commons.httpclient.methods.multipart;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public class StringPartTool {
    private StringPart part;

    public StringPartTool(StringPart part) {
        this.part = part;
    }

    public void getValue(ByteArrayOutputStream baos) throws IOException {
        part.sendData(baos);
//        return new String(baos.toByteArray(),part.getCharSet());
    }

    public StringPart getPart() {
        return part;
    }

    public void setPart(StringPart part) {
        this.part = part;
    }
}
